<template>
  <div id="app">
    <router-view/>

<!--    <div id="nav">-->
<!--      &lt;!&ndash; <b> 导航部分 </b> | &ndash;&gt;-->
<!--      &lt;!&ndash;      <router-link to="/"> 2D知识图谱</router-link> |&ndash;&gt;-->
<!--      &lt;!&ndash;      <router-link to="/3dView"> 3D知识图谱</router-link>|&ndash;&gt;-->
<!--      <router-link to="/paper">页面1</router-link>-->
<!--      |-->
<!--      <router-link to="/paper2">页面2</router-link>-->
<!--      |-->
<!--      &lt;!&ndash; <router-link to="/about">3D知识图谱</router-link> &ndash;&gt;-->
<!--      <router-link to="/test">测试</router-link>-->
<!--      |-->
<!--      <router-link to="/page2">新图谱</router-link>-->
<!--    </div>-->
  </div>
</template>
<script>
export default {
  name: 'app',
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload () {
      this.isRouterAlive = false
      this.$nextTick(function () {
        this.isRouterAlive = true
      })
    }
  }
}
</script>
<style lang="scss">
body {
  margin: 0;
  list-style: none;
  text-decoration: none;
  font-size: 100%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  margin: 5px;
  padding: 20px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
